package com.xiaohe66.web.domain.sys.sec.value;

import com.xiaohe66.web.integration.domain.StringValue;
import lombok.EqualsAndHashCode;
import lombok.NonNull;

/**
 * @author He
 * @since 2024.01.03 11:31
 */
@EqualsAndHashCode(callSuper = true)
public class SecEncryptPublicKey extends StringValue {

    public SecEncryptPublicKey(@NonNull String value) {
        super(value);
    }

    public boolean isNotInit() {
        return getValue().length() == 0;
    }

    @Override
    public String toString() {
        return "SecEncryptPublicKey(" + getValue() + ")";
    }
}
